import Vue from 'vue'
import App from './App'

// import '../static/styles/weui.css'

Vue.config.productionTip = false
App.mpType = 'app'

const app = new Vue(App)
app.$mount()

export default {
  // 这个字段走 app.json
  config: {
    // 页面前带有 ^ 符号的，会被编译成首页，其他页面可以选填，我们会自动把 webpack entry 里面的入口页面加进去
    pages: [
      'pages/index/main',
      'pages/ranking/main',
      'pages/bill/addone/main',
      '^pages/plan/main',
      'pages/plan/clock/main',
      'pages/bill/main',
      'pages/me/main'
    ],
    window: {
      backgroundTextStyle: 'light',
      navigationBarBackgroundColor: '#138cff',
      navigationBarTitleText: 'WeChat',
      navigationBarTextStyle: 'white',
      backgroundColor: '#138cff'
    },
    tabBar: {
      color: '#757982',
      selectedColor: '#138cff',
      borderStyle: 'white',
      backgroundColor: '#fff',
      list: [
        {
          pagePath: 'pages/plan/main',
          text: '计划',
          iconPath: '/static/images/tabbar/plan.png',
          selectedIconPath: '/static/images/tabbar/plan-on.png'
        },
        {
          pagePath: 'pages/bill/main',
          text: '账本',
          iconPath: '/static/images/tabbar/bill.png',
          selectedIconPath: '/static/images/tabbar/bill-on.png'
        },
        {
          pagePath: 'pages/index/main',
          text: '圈子',
          iconPath: '/static/images/tabbar/index.png',
          selectedIconPath: '/static/images/tabbar/index-on.png'
        },
        {
          pagePath: 'pages/ranking/main',
          text: '榜单',
          iconPath: '/static/images/tabbar/ranking.png',
          selectedIconPath: '/static/images/tabbar/ranking-on.png'
        },
        {
          pagePath: 'pages/me/main',
          text: '我的',
          iconPath: '/static/images/tabbar/me.png',
          selectedIconPath: '/static/images/tabbar/me-on.png'
        }
      ]
    }
  }
}
